package com.tools.cloud.service;

import com.tools.cloud.api.model.CommonResult;
import com.tools.cloud.api.model.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentService {
    @RequestMapping(value = "/payment/selectOne", method = RequestMethod.POST)
    CommonResult<Payment> selectOne(@RequestBody Payment param);
}
